<template>
  <view class="custom-tabs">
    <view class="custom-tabs-bar active">
      <text class="tabbar-text">关注</text>
    </view>
    <view class="custom-tabs-bar">
      <text class="tabbar-text">推荐</text>
    </view>
    <view class="custom-tabs-bar">
      <text class="tabbar-text">护肤</text>
    </view>
    <view class="custom-tabs-bar">
      <text class="tabbar-text">减脂</text>
    </view>
    <view class="custom-tabs-bar">
      <text class="tabbar-text">饮食</text>
    </view>
    <view class="mark"></view>
  </view>
</template>

<script setup lang="ts"></script>

<style lang="scss" scoped>
.custom-tabs {
  width: 750rpx;
  height: 80rpx;
  // background-color: #ccc;
  display: flex;
  color: #b1b0aa;
  position: relative;

  // 侧轴居中
  align-items: center;
  .custom-tabs-bar {
    width: 80rpx;
    height: 80rpx;
    line-height: 80rpx;
    text-align: center;
    // background-color: red;
    margin-left: 20rpx;
  }
  .active {
    color: #000;
  }
  .mark {
    width: 40rpx;
    height: 6rpx;
    background-color: #49ad9f;
    position: absolute;
    left: 40rpx;
    bottom: 0;
  }
}
</style>
